home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / amiga / gui / x / xnclds93.lha / os-include_x11.lha / os-include / X11 / extensions / PEX / pexSwap.h < prev   
Encoding:
C/C++ Source or Header  |  1999-07-02  |  1.8 KB  |  55 lines

  1. /* $XConsortium: pexSwap.h,v 5.3 91/07/01 16:19:41 hersh Exp $ */
  2.  
  3. /***********************************************************
  4. Copyright 1989, 1990, 1991 by Sun Microsystems, Inc. and the X Consortium.
  5.  
  6.                         All Rights Reserved
  7.  
  8. Permission to use, copy, modify, and distribute this software and its 
  9. documentation for any purpose and without fee is hereby granted, 
  10. provided that the above copyright notice appear in all copies and that
  11. both that copyright notice and this permission notice appear in 
  12. supporting documentation, and that the names of Sun Microsystems,
  13. the X Consortium, and MIT not be used in advertising or publicity 
  14. pertaining to distribution of the software without specific, written 
  15. prior permission.  
  16.  
  17. SUN MICROSYSTEMS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 
  18. INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT 
  19. SHALL SUN MICROSYSTEMS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL 
  20. DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  21. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  22. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  23. SOFTWARE.
  24.  
  25. ******************************************************************/
  26.  
  27. /*
  28.  *    Swapping information used by both the dipex portions of the
  29.  *    server and by the archive sections of the api.
  30.  */
  31.  
  32. #ifndef PEXSWAP_H
  33. #define PEXSWAP_H 1
  34.  
  35. #include <X11/extensions/PEXErr.h>
  36.  
  37. typedef PEXFLOAT        (*ConvFunction)();
  38. typedef CARD16        (*SwapShortFunction)();
  39. typedef CARD32        (*SwapLongFunction)();
  40. typedef ErrorCode   (*OCFunction)();
  41.  
  42. typedef struct {
  43.     SwapShortFunction    ConvertCARD16;
  44.     SwapLongFunction    ConvertCARD32;
  45.     ConvFunction    ConvertFLOAT;
  46. } pexSwap;
  47.  
  48. extern CARD16 SwapCARD16();
  49. extern CARD32 SwapCARD32();
  50. extern PEXFLOAT  SwapFLOAT();
  51. extern PEXFLOAT  ConvertFLOAT();
  52.  
  53.  
  54. #endif
  55.